#include<stdio.h>//1 
int main()
{
	int n,tmp,min=100000000,i;
	scanf("%d",&n);
	for(i=0;i<n;i++)
	{
		scanf("%d",&tmp);
		if(tmp<min)
		{
			min=tmp;
		}
	}
	printf("min = %d",min);
	return 0;
} 

#include<stdio.h>//2 
#include<math.h>
int main()
{
    double sum=0;
    int i,n;
    double a=2,b=1,t;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {
    	sum=sum+a/b;
        t=a;
        a=b;
        b=t;
        a=a+b;
    }
    printf("sum=%.2f",sum);
    return 0;
}

#include<stdio.h>//3 
#include<math.h>
double fact(int x);
int main()
{
	double x,s,r=1.0;;
	scanf("%lf",&x);
	int i=1;
	while(fabs(r) >= 1e-5 )//0.00001
	{
		r=pow(x,i)/fact(i);
		s=s+r;
		i++;
	}
	s=s+1;
	printf("s=%.2lf",s);
	return 0;
}

double fact(int n)
{
	int i;
	double result=1;
	for(i=1;i<=n;i++)
	{
		result=result*i;
	}
	return result;
}

#include<stdio.h>//4
#include<math.h>
int main()
{
	int m,n,a,b,m1,n1;
	scanf("%d",&m);
	m1=m;
	scanf("%d",&n);
	n1=n;
	a=m*n;
	while(n!=0)
	{
		b=m%n;
		m=n;
		n=b;
	}
	printf("The greatest common divisor of %d and %d is %d.\n",m1,n1,m);
	printf("The least common multiple of %d and %d is %d.",m1,n1,a/m);
	return 0;
}

#include<stdio.h>//5 
#include<math.h>
int main()
{
	int mn,yn,n,i;
	scanf("%d %d",&mn,&n);//my number/your number
	if((mn<100&&n<100)&&(mn>0&&n>0)) 
	{
		for(i=1;i<=n;i++)
		{
    		scanf("%d",&yn);
    		if(i==1&&mn==yn)
			{
				printf("Bingo!");
				break;
			}
    		if(yn<0)
			{
				printf("Game Over!");
				break;
			}
			if(i<=3&&mn==yn)
			{
				printf("Lucky You!\n");
				break;
			}
    		else if(mn<yn)
			{
				printf("Too big\n");
				continue;
			}
			else if(mn>yn)
			{
				printf("Too small\n");
				continue;
			}
			else if(mn==yn)
			{
				printf("Good Guess!\n");
				break;
			}
		}
		if(i>n)
		{
			printf("Game Over!");
		}
	}
	else
	{
		printf("Game Over!");
	}
	return 0;	
}

#include<stdio.h>//6
#include<math.h> 
int main()
{
    int m,n,s=0; 
    scanf("%d%d",&m,&n); 
    while(n>=0)       
    { 
        s=m*n+s; 
        m=m*10; 
        n--; 
    } 
    printf("sum=%d\n",s);
} 
